home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / prenice.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Prenice(2)                 Oct. 1, 1991                Prenice(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Prenice - change process priority
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        LONG Prenice( WORD pid, WORD delta );
  12.  
  13. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  14.        _✓P_✓r_✓e_✓n_✓i_✓c_✓e  changes the base process niceness for process _✓p_✓i_✓d
  15.        by the amount _✓d_✓e_✓l_✓t_✓a.  Higher levels of niceness correspond
  16.        to  decreased  priority  in scheduling, so positive values
  17.        for delta cause the corresponding process to be  scheduled
  18.        less  often.  Conversely,  negative values for delta cause
  19.        the process priority to be increased.
  20.  
  21. R✓RE✓ET✓TU✓UR✓RN✓NS✓S
  22.        The current priority for the process, if successful.  This
  23.        is  a  16  bit signed quantity. The default priority is 0;
  24.        higher priority processes  have  larger  priority  values,
  25.        lower priority ones have smaller values.
  26.  
  27.        EFILNF  if the indicated process does not exist (note that
  28.        since this is a 32 bit negative number it can  be  distin-
  29.        guished  from  the  WORD negative numbers returned for low
  30.        priority processes)
  31.  
  32.        EACCDN if the process has a different user id
  33.  
  34. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  35.        _✓P_✓n_✓i_✓c_✓e(2)
  36.  
  37. B✓BU✓UG✓GS✓S
  38.        The scheduling algorithm is pretty weird, so it's hard  to
  39.        predict exactly what effect process priorities have.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.